package 命令设计模式;

/**
 * 抽象的命令接口
 */
public class OffCommand extends Command {

    public OffCommand(ConditionReciver conditionReciver) {
        super(conditionReciver);
    }

    /**
     * 命令执行
     */
    @Override
    public void execute() {
        conditionReciver.off();
    }
}
